/**
 *Copyright (c) 2024 watereyes
 * safetymanagement is licensed under Mulan PubL v2.
 * You can use this software according to the terms and conditions of the Mulan
 * PubL v2.
 * You may obtain a copy of Mulan PubL v2 at:
 *          http://license.coscl.org.cn/MulanPubL-2.0
 * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
 * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
 * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
 * See the Mulan PubL v2 for more details.
 */
package com.koron.purpose.service.api;

import com.koron.common.bean.StaffBean;
import com.koron.common.domain.DataBean;
import com.koron.purpose.bean.SafetyMeetingBean;
import org.springframework.web.multipart.MultipartFile;
import org.swan.bean.MessageBean;

import java.util.List;
import java.util.Map;

public interface SafetyMeetingService {

    /**
     * 删除
     * @param id
     * @param user)
     * @return
     */
    MessageBean<?> deleteSafetyMeeting(String id, StaffBean user);

    /**
     * 新增 安全会议
     * @param bean
     * @param user
     * @param files 会议记录附件
     * @param jobsTasksId 工作任务ID
     * @return
     */
    MessageBean<?> insert(SafetyMeetingBean bean, StaffBean user, MultipartFile[] files, String jobsTasksId);

    /**
     * 根据id 查询 安全会议
     * @param id
     * @return
     */
    MessageBean<SafetyMeetingBean> queryById(String id);

    /**
     * 修改 安全会议
     * @param bean
     * @param user
     * @param files 附件
     * @return
     */
    MessageBean<?> updateSafetyMeeting(SafetyMeetingBean bean, StaffBean user, MultipartFile[] files, String jobsTasksId);

    /**
     * 条件查询 安全会议
     * @param corpCode 水司code
     * @param managerName 发起单位
     * @param meetingUserName 发起人员
     * @param meetingTimeStart 会议时间开始
     * @param meetingTimeStop 会议时间结束
     * @param page 当前页
     * @param pageSize 每页条数
     * @return
     */
    MessageBean<DataBean<Map>> querySafetyMeeting(String corpCode, String managerName, String meetingUserName,
                                                  String meetingTimeStart, String meetingTimeStop,
                                                  Integer page, Integer pageSize);

    /**
     * 文件删除
     * @param fileUrl
     * @return
     */
    MessageBean<?> deleteFile(String fileUrl);

    /**
     * 获取导出 安全会议信息
     * @param corpCode 水司code
     * @param managerName 发起单位
     * @param meetingUserName 发起人员
     * @param meetingTimeStart 会议时间开始
     * @param meetingTimeStop 会议时间结束
     * @return
     */
    List<Map> querySafetyMeetings(String corpCode, String managerName, String meetingUserName,
                                  String meetingTimeStart, String meetingTimeStop);
}
